<?php
/**
 * Created by PhpStorm.
 * User: chenzhitao
 * Date: 2018/3/5
 * Time: 上午10:24
 */

namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class SecQualifyCategory extends Model
{
    protected $table = 't_secqualify_category';
    public function levels()
    {
        return $this->belongsToMany(Level::class,'t_seccategorylevel',"subcategory_id","level_id");
    }
//    public function companys(){
//        return $this->belongsToMany(Company::class,'t_categorycompany',"category_id","company_id");
//    }

}